#include "VistaGoldenStar.h"
#include <vector>
#include <string>

VistaGoldenStar::VistaGoldenStar(std::string color, bool visible, int x, int y)
    : VistaFichaTablero(color, visible, x, y) {
    tipo = GOLDENSTAR;

    std::string path = elegirColor();

    iniciarImagen();
}

VistaGoldenStar::~VistaGoldenStar() { }

void VistaGoldenStar::iniciarImagen() {
    if (visible) {
        buffer = VistaFichaTablero::buffersGolden[0];
    } else {
        buffer = VistaFichaTablero::buffersGolden[45];
    }
}

std::string VistaGoldenStar::elegirColor() {
    return "../common/img/goldenstar.png";
}

Glib::RefPtr<Gdk::Pixbuf> VistaGoldenStar::obtenerImagen(int nroBuffer) {
    return  VistaFichaTablero::buffersGolden[nroBuffer];
}


